home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-22 | 3.5 KB | 101 lines | [TEXT/CWIE] |
- L o o k u p
- -----------
-
- An example application for PowerPlant.
-
- Version 1.0d2
-
- Written by Alastair Rankine, Copyright © 1995.
-
- mailto:alastair@magna.com.au
- http://www.magna.com.au/~alastair
-
-
-
- What it does
- ------------
-
- Lookup, as the name implies, is a name and phone number lookup application. You can store
- two phone numbers and an email address with each name listed in the file. The file format
- is tab-delimited text which means (hopefully) easy data conversion from other systems.
-
-
-
- What it is
- ----------
-
- Given the scarcity of PowerPlant example code, I thought I'd write a fully-functional
- application using the framework mainly for my own enlightenment, and hopefully others
- can benefit as well. This version is very much a development version and I hope to update
- it to be a bit more useful in future versions. In the meantime though, perhaps fellow
- PowerPlanters will find it informative.
-
- The following techniques/features are illustrated :
-
- • Document-based application. This app is a bit more fleshed out than the demo provided
- with PowerPlant.
-
- • Separation of model from view. PowerPlant contains an object dependency mechanism built
- in to the core of the framework. I have employed this successfully to tie the document
- object (containing the user's data) to the view objects (ie the windows, lists, etc)
- without any tight coupling.
-
- • AppleEvent Object Model support. The AEOM classes are, IMHO, PowerPlant's strongest
- point. As you can see, I have implemented a fully object model scriptable application
- with a minimum of code.
-
- • Fully factored application. Examples are given on how to use the LAEAction class to
- make the application fully factored. It is scriptable, recordable, and quite easy as
- you can see.
-
- • Utility classes/templates such as as an LList wrapper, and an ANSI string class wrapper.
-
-
-
- Building the Application
- ------------------------
-
- To build the 68K version, simply open the "Lookup68K_d.µ" project file and make. The
- resulting application is used to build the fat version. To do this, open the
- "LookupFAT_d.µ" project file and make.
-
-
-
- Soon to come
- ------------
-
- There are lots of PowerPlant's features that I would like to make use of in future versions
- of this application. The main one, of course, is direct manipulation including Drag & Drop.
-
- I'd also like to clean up the document handling somewhat. PowerPlant's document class is a
- little thin (at least compared with MacApp) and I'd like to attempt a smarter version.
-
- Please feel free to email me at the above address if you have any questions or suggestions.
-
-
-
- Version History
- ---------------
-
- 1.0d1 First development release.
- 1.0d2 Updated for CodeWarrior IDE 1.3, PowerPlant 1.2.
-
-
-
- Legal Stuff
- -----------
-
- [I should note that for convenience I have included the bare-essentials of Harold Ekstrom's
- CListBox class. This is obviously not subject to my copyright or the following conditions.]
-
- This program is free software; you can redistribute it and/or modify it under the terms of
- the GNU General Public License as published by the Free Software Foundation; either version
- 2 of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with this program;
- if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-